package com.zzxz.practicaltrainingsys.service;

import com.zzxz.practicaltrainingsys.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherService {
    List<Teacher> getTeacher();
    boolean updatePassword(Integer teacher_id, String teacher_password);
    boolean updateTeacher(Teacher teacher);
    String getTeacherPassword(Integer teacherId);

    // 新增方法
    boolean insertTeacher(Teacher teacher);
    boolean deleteTeacher(Integer teacher_id);
    boolean deleteBatch(List<Integer> ids);
    Teacher getTeacherById(Integer teacher_id);
    Teacher loginTeacherById(@Param("teacher_id") Integer teacher_id);
    Teacher loginTeacherByPhone(@Param("teacher_phone") String teacher_phone);

}